package com.ruoyi.im.domain;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;


@Data
@ApiModel(value = "UserGroupList")
public class UserGroupList {

    @ApiModelProperty(value = "分组id", position = 1)
    private Long id;
    @ApiModelProperty(value = "分组名称", position = 2)
    private  String groupingName;
    @ApiModelProperty(value = "总人数", position = 3)
    private  Integer userCount;


    @ApiModelProperty(value = "好友分组详情", dataType = "UserGroupFriends", position = 4)
    private List<UserGroupFriends> detailsList;

    public void setDetails(String details) {
        this.detailsList = JSON.parseArray(details, UserGroupFriends.class);
    }


}
